package com.qk.common.util;

public class CurrentUserContextHolders {
    private static final ThreadLocal<Integer> currentUserId = new ThreadLocal<>();

    private CurrentUserContextHolders(){}

    public static void set(Integer id){
        currentUserId.set(id);
    }

    public static Integer get(){
        return currentUserId.get();
    }

    public static void remove(){
        currentUserId.remove();
    }
}
